#define _CRT_SECURE_NO_DEPRECATE
#include<stdio.h>
#include<assert.h>
void* my_memcpy(void* dest,const void* src, size_t num)
{
	assert(dest&&src);
	char* p1 =(char*) dest;
	char* p2 = (char*)src;

	while (num--)
	{
		*p1= *p2;
		p1++;
		p2++;
	}
	return dest;

}
int main()
{
	int arr1[] = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 };
	int arr2[] = { 11, 22, 33, 44, 55, 66, 77, 88, 99, 1010 };
	my_memcpy(arr1, arr2, sizeof(arr2));
	for (int i = 0; i < 10; i++)
	{
		printf("%d\t", arr1[i]);
	}
	return 0;
}